import axios from "axios"

const src='/api/article'

export function articlePost(data){
    return axios.post(src,data);
}

export function articleList(){
    return axios.get(src+"/list");
}

export function articleById(id){
    return axios.get(src+"/"+id);
}

export function articleDelete(ids){
    return axios.delete(src,{data: ids});
}

export function updateById(article){
    return axios.put(src,article);
}
